﻿using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUtliPoolLib;

namespace XMainClient
{
	// Token: 0x02000E91 RID: 3729
	internal class XWorldBossBehaviour : DlgBehaviourBase
	{
		// Token: 0x0600C727 RID: 50983 RVA: 0x002C2A50 File Offset: 0x002C0C50
		private void Awake()
		{
			this.m_BtnClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
			this.m_BtnGoBattle = (base.transform.Find("Bg/Frame/GoBattle").GetComponent("XUIButton") as IXUIButton);
			Transform transform = base.transform.Find("Bg/GuildRankPanel/ScrollView");
			this.m_ScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView);
			transform = transform.Find("WrapContent");
			this.m_WrapContent = (transform.GetComponent("XUIWrapContent") as IXUIWrapContent);
			this.m_RankPanel = base.transform.Find("Bg/GuildRankPanel").gameObject;
			this.m_RankPanel_EmptyRank = (base.transform.Find("Bg/GuildRankPanel/EmptyRank").GetComponent("XUILabel") as IXUILabel);
			GameObject gameObject = this.m_RankPanel.transform.Find("RankTpl").gameObject;
			GameObject gameObject2 = this.m_RankPanel.transform.Find("OutOfRange").gameObject;
			gameObject.gameObject.SetActive(false);
			gameObject2.gameObject.SetActive(false);
			this.m_RankPanel_EmptyRank.gameObject.SetActive(false);
			this.m_OpenTime = (base.transform.Find("Bg/Frame/LeftTime/sk").GetComponent("XUILabel") as IXUILabel);
			this.m_LeftTime = (base.transform.Find("Bg/Frame/LeftTime/Value").GetComponent("XUILabel") as IXUILabel);
			this.m_LeftTimeHint = (base.transform.Find("Bg/Frame/LeftTime/Over").GetComponent("XUILabel") as IXUILabel);
			this.m_BossName = (base.transform.Find("Bg/Frame/LeftTime/12").GetComponent("XUILabel") as IXUILabel);
			this.m_LeftTime.SetText("");
			this.m_LeftTimeHint.SetText("");
			this.m_OpenTime.SetText("");
			this.m_BossName.SetText("");
			this.m_RewardPanel = base.transform.Find("Bg/Frame/RewardDlg").gameObject;
			this.m_BtnReward = (base.transform.Find("Bg/Frame/AwardDetail").GetComponent("XUIButton") as IXUIButton);
			this.m_BtnRewardPanelClose = (base.transform.Find("Bg/Frame/RewardDlg/Bg/Close").GetComponent("XUIButton") as IXUIButton);
			this.m_DropAward = (base.transform.Find("Bg/Frame/DropFrame/Grid").GetComponent("XUIList") as IXUIList);
			Transform transform2 = this.m_DropAward.gameObject.transform.Find("ItemTpl");
			this.m_DropAwardPool.SetupPool(transform2.parent.parent.gameObject, transform2.gameObject, 6U, false);
			this.m_AwardScrollView = (base.transform.Find("Bg/Frame/RewardDlg/Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView);
			this.m_AwardWrapContent = (this.m_AwardScrollView.gameObject.transform.Find("AwardList").GetComponent("XUIWrapContent") as IXUIWrapContent);
			this.m_AwardTip = (base.transform.Find("Bg/Frame/RewardDlg/Bg/Bg/Tip").GetComponent("XUILabel") as IXUILabel);
			this.m_BossTexture = (base.transform.Find("Bg/Frame/BossTexture").GetComponent("XUITexture") as IXUITexture);
			this.m_GuildRankTab = (base.transform.Find("Bg/GuildRankPanel/TabTpl/ToggleGuild").GetComponent("XUICheckBox") as IXUICheckBox);
			this.m_DamageRankTab = (base.transform.Find("Bg/GuildRankPanel/TabTpl/ToggleFriend").GetComponent("XUICheckBox") as IXUICheckBox);
			this.m_BtnSubscribe = (base.transform.Find("Bg/Frame/Subscribe").GetComponent("XUIButton") as IXUIButton);
			this.m_BtnCancelSubscribe = (base.transform.Find("Bg/Frame/UnSubscribe").GetComponent("XUIButton") as IXUIButton);
			this.m_PrivilegeIcon = (base.transform.Find("Bg/tq").GetComponent("XUISprite") as IXUISprite);
			this.m_PrivilegeName = (base.transform.Find("Bg/tq/t").GetComponent("XUILabel") as IXUILabel);
			this.m_Privilege = (base.transform.Find("Bg/tq/p").GetComponent("XUISprite") as IXUISprite);
		}

		// Token: 0x0400575E RID: 22366
		public IXUIButton m_BtnClose;

		// Token: 0x0400575F RID: 22367
		public IXUIButton m_BtnGoBattle;

		// Token: 0x04005760 RID: 22368
		public IXUIButton m_BtnSubscribe;

		// Token: 0x04005761 RID: 22369
		public IXUIButton m_BtnCancelSubscribe;

		// Token: 0x04005762 RID: 22370
		public IXUILabel m_LeftTime;

		// Token: 0x04005763 RID: 22371
		public IXUILabel m_LeftTimeHint;

		// Token: 0x04005764 RID: 22372
		public IXUILabel m_BossName;

		// Token: 0x04005765 RID: 22373
		public IXUILabel m_OpenTime;

		// Token: 0x04005766 RID: 22374
		public IXUIWrapContent m_WrapContent;

		// Token: 0x04005767 RID: 22375
		public IXUIScrollView m_ScrollView;

		// Token: 0x04005768 RID: 22376
		public IXUIWrapContent m_AwardWrapContent;

		// Token: 0x04005769 RID: 22377
		public IXUIScrollView m_AwardScrollView;

		// Token: 0x0400576A RID: 22378
		public GameObject m_RankPanel;

		// Token: 0x0400576B RID: 22379
		public IXUILabel m_RankPanel_EmptyRank;

		// Token: 0x0400576C RID: 22380
		public IXUIButton m_BtnReward;

		// Token: 0x0400576D RID: 22381
		public GameObject m_RewardPanel;

		// Token: 0x0400576E RID: 22382
		public IXUIButton m_BtnRewardPanelClose;

		// Token: 0x0400576F RID: 22383
		public IXUIList m_DropAward;

		// Token: 0x04005770 RID: 22384
		public XUIPool m_DropAwardPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		// Token: 0x04005771 RID: 22385
		public IXUILabel m_AwardTip;

		// Token: 0x04005772 RID: 22386
		public IXUITexture m_BossTexture;

		// Token: 0x04005773 RID: 22387
		public IXUICheckBox m_GuildRankTab;

		// Token: 0x04005774 RID: 22388
		public IXUICheckBox m_DamageRankTab;

		// Token: 0x04005775 RID: 22389
		public IXUISprite m_PrivilegeIcon;

		// Token: 0x04005776 RID: 22390
		public IXUILabel m_PrivilegeName;

		// Token: 0x04005777 RID: 22391
		public IXUISprite m_Privilege;
	}
}
